package com.eatme.web.activiti.delegate;

import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ServiceSetVariable implements JavaDelegate {
    private static final Logger LOG = LoggerFactory.getLogger(ServiceSetVariable.class);

    @Override
    public void execute(DelegateExecution execution) {

        LOG.info(execution.getEventName());
        LOG.info(execution.getProcessDefinitionId());
        LOG.info(execution.getProcessInstanceId());

        execution.setVariable("aa","bb");
    }
}
